const koaProxies = require('koa-proxies');
module.exports = (app) => {
  const {
    proxy
  } = app.config;
  if (proxy) {
    for (let k in proxy) {
      app.use(koaProxies(
        k, proxy[k]
      ));
    }
  }
};
